#include <iostream>
#include "Range.c"
#include  "ValueInRange.c"

int main(){
	Range* range=new Range(0,2);
		
	ValueInRange* x1=new ValueInRange(1,range);
	range->setB(3);
	std::cout<<range->getA()<<" "<<range->getB();
		
	Range* range2=new Range(0,2);
	x1.setRange(range2);
	range->setB(3);
	std::cout<<range->getA()<<" "<<range->getB();		
	
	return 0;
}
